/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package east2west.service;

import east2west.dao.CarOrderDetailDAO;
import east2west.dto.CarOrderDetailDTO;
import java.util.ArrayList;

/**
 *
 * @author anhtuan
 */
public class CarOrderDetailService {

    CarOrderDetailDAO dao = new CarOrderDetailDAO();

    public CarOrderDetailDTO findById(int id) {
        return dao.findById(id);
    }

    public boolean create(CarOrderDetailDTO dto) {
        return dao.create(dto);
    }

    public ArrayList<CarOrderDetailDTO> findByOrderId(int id) {
        return dao.findByCarId(id);
    }

    public ArrayList<CarOrderDetailDTO> findByOrderDetailNotCancel(int orderid) {
        return dao.findByOrderDetailNotCancel(orderid);
    }
}
